package com.esfak47.mediafetcher.core.service;

import com.esfak47.common.extension.SimpleAdaptable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tony
 */
@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProvideQuery implements SimpleAdaptable {
    @Builder.Default
    private String keyWords = "";
    @Builder.Default
    private int maxCount = 10;
    @Builder.Default
    private int offset = 0;
    @Builder.Default
    private String orderType = MediaProvider.OrderType.nc.name();
    @Builder.Default
    private String providerType = "";
    @Builder.Default
    private boolean crawler = false;

    @Builder.Default
    private int timeOutSeconds = 30;

    @Override
    public String getAdaptableKey() {
        return providerType;
    }

}
